#ifndef TB_PREFIX_ENDIAN_H
#define TB_PREFIX_ENDIAN_H

#include "config.h"

#ifdef __BYTE_ORDER__
#if __BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__
#define TB_WORDS_BIGENDIAN
#endif
#endif
#if defined(MIPSEB) || defined(_MIPSEB) || defined(__MIPSEB__)
#define TB_WORDS_BIGENDIAN
#endif

// float endian
#ifdef __FLOAT_WORD_ORDER__
#if __FLOAT_WORD_ORDER__ != __ORDER_LITTLE_ENDIAN__
#define TB_FLOAT_BIGENDIAN
#endif
#endif

#endif // !TB_PREFIX_ENDIAN_H
